define(['require', 'domReady', 'alltests'], function(require, domReady, alltests) {

function getParameterByName(name)
{
    name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
    var regexS = "[\\?&]" + name + "=([^&#]*)";
    var regex = new RegExp(regexS);
    var results = regex.exec(window.location.search);
    if(results == null)
	return "";
    else
	return decodeURIComponent(results[1].replace(/\+/g, " "));
}

// require(['helper/util_test']);

var testModule = getParameterByName('testmodule');
if (testModule) {
    require([testModule]);
    return;
}

require(alltests.testModules);

});
